package com.kzj.service;

import com.kzj.common.exception.MyException;
import com.kzj.common.result.Result;
import com.kzj.pojo.CourseStudent;
import com.kzj.pojo.dto.CourseStudentBatchAddDto;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public interface CourseStudentService {
    public Result getAll();

    public Result getById(Long id);

    public Result update(CourseStudent courseStudent);
    public Result add(CourseStudent courseStudent);

    public Result deleteById(Long id);

    public Result batchAdd(CourseStudentBatchAddDto dto);
    public Result getOptionalCoursesByStudentId(Long studentId);
    public Result getOptionalStudentsByCourseId(Long courseId);
    public Result batchDelete(String courseIds,String studentIds);
    public Result getDeletableStudentsByCourseId(Long courseId);
    public Result getDeletableCoursesByStudentId(Long studentId);
    public Result terms();

    Result getCourseStudentByTeacherId(Long teacherId);
}
